package com.exchange.web.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.exchange.web.goods.entity.Goods;
import com.exchange.web.goods.entity.dto.WxIndexParm;
import com.exchange.web.goods.entity.vo.goodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface GoodsMapper extends BaseMapper<Goods> {
    //查询我的订单
    IPage<Goods> getMyOrder(IPage<Goods> page, @Param("userId") Long userId);

    //查询出售订单
    IPage<Goods> getSellOrder(IPage<Goods> page, @Param("userId") Long userId);

    List<goodsVO> getGoodsList(IPage<goodsVO> page, @Param("dto") WxIndexParm parm);

    List<goodsVO> getGoodsIndexList(IPage<goodsVO> page, @Param("dto") WxIndexParm parm);

    List<goodsVO> getGoodBuysList(IPage<goodsVO> page, @Param("dto") WxIndexParm parm);

    Integer getGoodBuysListTotal(@Param("dto") WxIndexParm parm);

    Integer getGoodListTotal(@Param("dto") WxIndexParm parm);

    Integer getIndexGoodListTotal(@Param("dto") WxIndexParm parm);

    void deleteGoodsReport(@Param("goodsId") Long goodsId);

    int getChartsForUserNumByWeek(@Param("data") String DateSign);

    int getChartsForGoodsNumByWeek(@Param("data") String s);

    int getChartsForGoodsBuyNumByWeek(@Param("data") String s);

    int getChartsForUserNumByYear(@Param("data") String params);

    int getChartsForGoodsNumByYear(@Param("data") String s);

    int getChartsForGoodsBuyNumByYear(@Param("data") String s);
}
